import request from '@/utils/request'
import { getServicePath } from '@/api/baseUrlConfig'
const servicePath = getServicePath()

// 查询通知列表
export function queryByCondition (data) {
  return request({
    url: (servicePath?.zhdjProjectServer || '') + `/notification-reminders/queryByCondition`,
    method: 'get',
    params: data
  })
}

// id查询通知详情
export function queryById (data) {
  return request({
    url: (servicePath?.zhdjProjectServer || '') + `/notification-reminders/queryById/${data.id}`,
    method: 'get',
    params: data
  })
}

// 删除通知
export function deleteById (data) {
  return request({
    url: (servicePath?.zhdjProjectServer || '') + `/notification-reminders/deleteById/${data.id}`,
    method: 'get',
    params: data
  })
}

// 新增通知
export function add (data) {
  return request({
    url: (servicePath?.zhdjProjectServer || '') + `/notification-reminders/add`,
    method: 'post',
    data
  })
}

// 编辑通知
export function edit (data) {
  return request({
    url: (servicePath?.zhdjProjectServer || '') + `/notification-reminders/edit`,
    method: 'post',
    data
  })
}
